*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
:TCP - [0:0]
:UDP - [0:0]
-A INPUT -p udp -m udp --dport 5060 -j ACCEPT  -m comment --comment "allow twinkle to work hopefully"
-A INPUT -p tcp -m tcp --dport 9050 -j ACCEPT  -m comment --comment "allow tor to work hopefully"
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT  -m comment --comment "allow iptables to access www.norm.com"
-A INPUT -p tcp -m tcp --dport 8081 -j ACCEPT  -m comment --comment "allow iptables to access guile.web.server.com"
-A INPUT -p tcp -m tcp --dport 6697 -j ACCEPT  -m comment --comment "allow irc communication"
-A INPUT -p udp -m udp --dport 6697 -j ACCEPT  -m comment --comment "allow irc communication"
# -A INPUT -p udp -m udp --dport 123 -j ACCEPT  -m comment --comment "allow ntpd time service to work. http://www.ntp.org/"
# Feb  5 14:39:57 localhost ntpd[333]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
-A INPUT -p udp -m conntrack --ctstate NEW -j UDP
-A INPUT -p tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j TCP
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -j REJECT --reject-with icmp-proto-unreachable
COMMIT
# completed
